Skip to content

[CLEANUP]: Detach python binding code to individual repo#284

Merged
haochengxia merged 3 commits intodevelopfrom
hxia/remove_pybind
Aug 4, 2025
Merged

[CLEANUP]: Detach python binding code to individual repo#284
haochengxia merged 3 commits intodevelopfrom
hxia/remove_pybind

Conversation

@haochengxia
Copy link
Copy Markdown
Collaborator

@haochengxia haochengxia commented Aug 3, 2025

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @haochengxia, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request represents a significant architectural cleanup, focusing on the complete detachment of the Python bindings from the main libCacheSim repository. By removing all Python-specific source code, build configurations, examples, and tests, the core project becomes more streamlined and focused. The accompanying documentation updates ensure that users are directed to the new, independent Python binding repository for installation and usage instructions, while also reflecting minor API adjustments in the Python examples.

Highlights

  • Python Bindings Detachment: The entire Python binding codebase, previously located under libCacheSim-python/, has been removed from this repository. It is now expected to reside in a separate, dedicated repository.
  • Build System Decoupling: The main CMakeLists.txt no longer includes the Python binding's build configuration, simplifying the core project's build process.
  • Documentation Updates: The main README.md has been updated to reflect the new external location of the Python bindings, including changes to badge URLs and direct links to the new repository's documentation.
  • Python API Example Refinements: Example Python code snippets in README.md have been updated to reflect potential API changes in the detached Python library, such as the use of SyntheticReader instead of create_zipf_requests and a revised PluginCache example.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request detaches the Python binding code into a separate repository. The changes primarily involve the removal of the libCacheSim-python directory and related build scripts. The CMakeLists.txt and README.md files have been updated to reflect this separation. A link in README.md for the Python Release badge has been corrected to point to the new repository.

Comment thread README.md

[![build](https://github.com/1a1a11a/libCacheSim/actions/workflows/build.yml/badge.svg)](https://github.com/1a1a11a/libCacheSim/actions/workflows/build.yml)
[![Python Release](https://github.com/1a1a11a/libCacheSim/actions/workflows/pypi-release.yml/badge.svg)](https://github.com/1a1a11a/libCacheSim/actions/workflows/pypi-release.yml)
[![Python Release](https://github.com/cacheMon/libCacheSim-python/actions/workflows/pypi-release.yml/badge.svg)](https://github.com/1a1a11a/libCacheSim/actions/workflows/pypi-release.yml)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The link for the "Python Release" badge should point to the workflow in the new libCacheSim-python repository to ensure it links to the correct CI/CD pipeline.

Suggested change
[![Python Release](https://github.com/cacheMon/libCacheSim-python/actions/workflows/pypi-release.yml/badge.svg)](https://github.com/1a1a11a/libCacheSim/actions/workflows/pypi-release.yml)
[![Python Release](https://github.com/cacheMon/libCacheSim-python/actions/workflows/pypi-release.yml/badge.svg)](https://github.com/cacheMon/libCacheSim-python/actions/workflows/pypi-release.yml)

@haochengxia haochengxia requested a review from 1a1a11a August 3, 2025 06:19
Copy link
Copy Markdown
Owner

@1a1a11a 1a1a11a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread README.md Outdated
Comment thread README.md
@haochengxia haochengxia merged commit e8a7194 into develop Aug 4, 2025
9 checks passed
@haochengxia haochengxia deleted the hxia/remove_pybind branch August 4, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants